package ch.ethz.group3.myalbum.shared;

import java.io.Serializable;

public class GeoLocationModel implements Serializable {
	private float longitude;
	private float latitude;
	private int accuracy;

	public float getLongitude() {
		return longitude;
	}

	public void setLongitude(float longitude) {
		this.longitude = longitude;
	}

	public float getLatitude() {
		return latitude;
	}

	public void setLatitude(float latitude) {
		this.latitude = latitude;
	}

	public int getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(int accuracy) {
		this.accuracy = accuracy;
	}

	@Override
	public String toString() {
		if (accuracy == Integer.MIN_VALUE)
			return null;
		return latitude + " " + longitude;
	}

}
